<?php
# MySQL主库
return
    [
        'class' => 'yii\db\Connection',
        'dsn' => 'mysql:host=127.0.0.1;port=3306;dbname=easyapi',
        'username' => 'username',
        'password' => 'password',
        'charset' => 'utf8mb4',
        'tablePrefix' => '',

        'enableSchemaCache' => true,
        'schemaCacheDuration' => 60,
        'schemaCache' => 'cache',
    ];